# excel 表的读写

import xlrd
import xlwt
import os


def read_excel(path):
	workBook = xlrd.open_workbook(path)

	#获取 sheet 命名
	# list 列表
	allSheetNames = workBook.sheet_names()
	print(allSheetNames)

	#获取下标位的sheet
	sheet1 = workBook.sheet_by_index(0) 
	
	print(sheet1.cell(1,0).value ) 
	print('执行结束')


path = '/Data/测试表.xlsx'
path = os.getcwd() + path
read_excel(path)
 